import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'index',
        component: () => import(/* webpackChunkName: "index" */ '../views/dangjian/index.vue')
    },

    {
        path: '/qinglian',
        name: 'qinglian',
        component: () => import(/* webpackChunkName: "one" */ '../views/qinglian/index.vue')
    },
    {
        path: '/',
        redirect: '/index'
    },
    {
        path: '*',
        redirect: '/'
    },
]

export default new VueRouter({
    routes
})
